package com.sxpi.zixun.service.questionscomment;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxpi.zixun.bo.QuestionsCommentBo;
import com.sxpi.zixun.pojo.QuestionsComment;
import com.sxpi.zixun.service.BaseService;
import com.sxpi.zixun.vo.QuestionsCommentVo;

import java.util.List;

/**
 * @Author: 董伟豪
 * @Date: 2022/9/17 10:57
 */
public interface IQuestionsCommentService extends IService<QuestionsComment>, BaseService {

    /**
     * 查询文章评论列表信息
     * @return
     */
    List<QuestionsCommentBo> findQuestionsCommentList();

    /**
     * 查询文章评论列表信息并分页
     * @param questionscommentVo
     * @return
     */
    IPage<QuestionsCommentBo> findQuestionsCommentPage(QuestionsCommentVo questionscommentVo);

    /**
     * 根据文章评论id查询明细信息
     * @param aLong
     * @return
     */
    QuestionsCommentBo getQuestionsCommentById(Long aLong);

    /**
     * 保存和修改文章评论
     * @param questionscomment
     * @return
     */
    QuestionsCommentBo saveUpdateQuestionsComment(QuestionsComment questionscomment);

    /**
     * 根据文章评论id删除文章评论
     * @param id
     * @return
     */
    int deleteQuestionsCommentById(Long id);

    /**
     * 根据文章评论ids批量删除文章评论
     * @param batchIds
     * @return
     */
    boolean delBatchQuestionsComment(String batchIds);
}
